import { StaffData,DelData,typeData ,StaffParams,DelDataall} from "./type"
import { get,post } from "../request"
//职员列表
export const StaffList=(data:StaffData)=>{
     return get("staff/list",data);
}
//添加
export const Staffadd=(data:StaffParams)=>{
     return post("staff/add",data);
}
//删除
export const Staffdel=(data:DelData)=>{
     return get ("staff/delete",data);
}
//批量删除
export const Staffdelall=(data:DelDataall)=>{
     return post ("staff/deleteall",data);
}
//类型
export const Stafftype=(data:typeData)=>{
     return get ("stafftype/list",data);
}